package cn.softeem.tushu.Dao;



import cn.softeem.tushu.po.Book;
import cn.softeem.tushu.po.Category;
import cn.softeem.tushu.utils.PageBean;

import java.sql.SQLException;
import java.util.List;

public interface MainDao {

    List<Category> getCategoryTwo() throws SQLException;
    PageBean<Book> getBookList(String x , int pageNow, String type) throws SQLException;
    Book getBookByid(String bid) throws SQLException;
    PageBean<Book> searchList(String bname, int pageNow) throws SQLException;

    PageBean<Book> searchList(String bname, String author, String press, int pageNow) throws SQLException;
}
